import { defineStore } from 'pinia'

/**
 * 缓存 @/mocks/template/list 中的模板信息
 */
export const useGetTemplateStore = defineStore('getTemplate', {
  state() {
    return {
      curTemp: ''
    }
  },
  getters: {
    getCurTemplate(state): any {
      return state.curTemp
    }
  },
  actions: {
    changeCurTemp(tempId: string) {
      this.curTemp = tempId
    }
  }
})